package org.dromara.business.domain.bo;

import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.business.domain.BusinessComplaint;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 投诉业务对象 business_complaint
 *
 * @author zlj
 * @date 2024-11-18
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = BusinessComplaint.class, reverseConvertGenerate = false)
public class BusinessComplaintBo extends BaseEntity {

    /**
     *
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 内容
     */
    @NotBlank(message = "内容不能为空", groups = { AddGroup.class, EditGroup.class })
    private String nr;

    /**
     * 图片 多图
     */
    @NotBlank(message = "图片不能为空", groups = { AddGroup.class, EditGroup.class })
    private String urlId;

    /**
     * 投诉人id
     */
    @NotNull(message = "投诉人id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;

    /**
     * 投诉类型 0信息 1其他
     */
    @NotBlank(message = "投诉类型 0信息 1其他不能为空", groups = { AddGroup.class, EditGroup.class })
    private String type;


}
